local extension = Package:new("huiwan2")
extension.extensionName = "king"
local U = require "packages/utility/utility"



Fk:loadTranslationTable{
    ["huiwan2"] = "会玩2",
  }

  local zb_huiwan = fk.CreateTriggerSkill{
    name = "zb_huiwan",
    events = {fk.GameStart},
    frequency = Skill.Compulsory,
    can_trigger = function(self, event, target, player, data)
      if not player:hasSkill(self) then return false end
      local room = player.room
      return player:hasEmptyEquipSlot(Card.SubtypeWeapon) and
      room:getCardArea(U.prepareDeriveCards(room, {{"spear", Card.Spade, 8}}, "zb_derivecards")[1]) == Card.Void
    end,
    on_use = function(self, event, target, player, data)
      local room = player.room
      room:moveCardIntoEquip(player, U.prepareDeriveCards(room, {{"spear", Card.Spade, 8}}, "zb_derivecards"), self.name)
    end,
  }
  Fk:loadTranslationTable{
  ["zb_huiwan"] = "会玩",
  [":zb_huiwan"] = "锁定技，游戏开始时，你将【丈八蛇矛】置入你的装备区。",
  ["spear"] = "丈八蛇矛",

}

local zb__liuyan = General(extension, "zb__liuyan", "qun", 3)
zb__liuyan:addSkill("tushe")
zb__liuyan:addSkill("limu")
zb__liuyan:addSkill(zb_huiwan)
Fk:loadTranslationTable{
  ["zb__liuyan"] = "会玩刘焉",

}

local zb__godzhangfei = General(extension, "zb__zhangfei", "god", 4)
zb__godzhangfei:addSkill(zb_huiwan)
zb__godzhangfei:addSkill("shencai")
zb__godzhangfei:addSkill("xunshi")
Fk:loadTranslationTable{
  ["zb__zhangfei"] = "会玩神张飞",
}


















return extension  